package com.usoft.thrift.benchmark.service;

import com.usoft.thrift.benchmark.HelloService;
import com.usoft.thrift.benchmark.SimpleRequest;
import com.usoft.thrift.benchmark.SimpleResponse;
import org.apache.logging.log4j.core.appender.SyslogAppender;
import org.apache.thrift.TException;

/**
 * Created by xinxingegeya on 16/2/25.
 */
public class MyHelloService implements HelloService.Iface {
    @Override
    public SimpleResponse hello(SimpleRequest request) throws TException {
        SimpleResponse response = new SimpleResponse();
        response.setId(request.getId());
        response.setBody("hello world");
        return response;
    }
}
